package com.xhu.water_supply.mapper;

import com.xhu.water_supply.entity.Customer;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface CustomerMapper extends Mapper<Customer> {
    public List<Customer> findAll();  //查找全部

    public List<Customer> selectCustomer(String cname);    //搜索客户

    public int addCustomer(Customer customer);   //添加客户

    public Customer getById(String cid); //查被修改客户

    public int editCustomer(Customer customer);   //编辑客户

    public int delCustomer(int cid);   //删除客户

    public List<Customer> queryPage(Integer starRows);  //根据页面获取顾客

    public int getRowCount();  //顾客总数量

}